// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import Vue from 'vue'
// import App from './App'
// import router from './router'

//  // eslint-disable no-new 
// new Vue({
//   el: '#app',
//   router,
//   template: '<App/>',
//   components: { App }
// })
import Vue from "vue";
import VueRouter from "vue-router";
import App from "./App.vue";
import Home from "./pages/home/home.vue";
import Class from "./pages/class/class.vue";
import Search from "./pages/search/search.vue";
import Cart from "./pages/cart/cart.vue";
import Me from "./pages/me/me.vue";
import Help from "./pages/me/component/help.vue";
import Lists from "./pages/me/lists.vue";
import Box from "./pages/me/component/Box.vue";
import About from "./pages/me/component/About.vue";
import Product from "./components/product.vue";
import Huiyan from "./pages/home/component/huiyan.vue";
// theme
import Tltq from "./pages/home/component/tltq.vue";
import Yihe from "./pages/home/component/yihe.vue";
import Youhui from "./pages/home/component/youhui.vue";
import Xinpin from "./pages/home/component/xinpin.vue";
import Remai from "./pages/home/component/remai.vue";
import Yinhang from "./pages/home/component/yinhang.vue";
import Qiye from "./pages/home/component/qiye.vue";
import City from "./pages/home/component/city.vue";
import Login from "./components/login.vue";
import Zc from "./components/zc.vue";
import Address from "./components/address.vue";
import Addaddress from "./components/add-address.vue";
import Czk from "./pages/me/czk.vue";
import Foods from "./pages/search/component/content3.vue";
import Foods2 from "./pages/search/food.vue";
import Child1 from "./pages/me/child1.vue";
import Child2 from "./pages/me/child2.vue";
import Child3 from "./pages/me/child3.vue";
import Child4 from "./pages/me/child4.vue";
import Ddjs from "./pages/me/ddjs.vue";
import JieSuan from "./pages/cart/component/jiesuan.vue";
import Sousuo from "./pages/class/component/sousuo.vue";
import Searchlink from "./pages/search/searchlink.vue";
// 数据引入





Vue.use(VueRouter)
const router =new VueRouter({
	// mode:"history",
	linkActiveClass:"zActive",
	routes:[
	    // {path:"/home",component:Home},
	    // 指定一开始加载的页面
	    {path:"/",redirect:"/home"},
		{path:"/home",component:Home},
		{path:"/class",component:Class},
		{path:"/search",component:Search},
		{path:"/cart",component:Cart},
		{path:"/me",component:Me},
		{path: '/product', component: Product},
		{path:'/huiyan', component: Huiyan},
		{path:'/tltq', component: Tltq},
		{path:'/yihe', component: Yihe},
		{path:'/youhui', component: Youhui},
		{path:'/xinpin', component: Xinpin},
		{path:'/remai', component: Remai},
		{path:'/yinhang', component: Yinhang},
		{path:'/qiye', component: Qiye},
		{path:'/city', component: City},
		{path:"/help",component:Help},
		{path:"/lists",component:Lists,children:[
			{path:"",redirect: '/lists/child1'},
			{path:"child1",component:Child1},
			{path:"child2",component:Child2},
			{path:"child3",component:Child3},
			{path:"child4",component:Child4}
		]},
		{path:"/box",component:Box},
		{path:"/about",component:About},
		// {path:"/lists",component:Lists},
		{path: '/login', component: Login},
		{path: '/zc', component: Zc},
		{path:'/address', component: Address},
		{path:'/addaddress', component: Addaddress},
		{path:'/czk', component:Czk},
		{path:'/foods', component:Foods},
		{path:'/ddjs', component:Ddjs},
		{path:'/foods2', component:Foods2},
		{path:'/jiesuan', component:JieSuan},
		// 搜索页
		{path:"/sousuo",component:Sousuo},
		{path:"/searchlink",component:Searchlink}
		
	]
})
// 指定一开始加载的页面
// router.push("/my");
new Vue({
	router,
	render:h=>h(App)
}).$mount("#app")



